package service;

import dao.DeptDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import pojo.Dept;
import pojo.User;
@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptDao deptDao;

    @Override
    public int addDept(Dept dept) {
//        System.out.println("新增一个部门："+dept);
        return deptDao.addDept(dept);
    }
}
